package com.briup.cms.sevice.impl;

import com.briup.cms.bean.Role;
import com.briup.cms.dao.RoleDao;
import com.briup.cms.sevice.IRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: cms
 * @BelongsPackage: com.briup.cms.sevice.impl
 * @Author: Hrs
 * @CreateTime: 2024-11-21  18:34
 * @Description: TODO
 * @Version: 1.0
 */
@Slf4j
@Service
public class RoleServiceImpl implements IRoleService {
    @Autowired
    private RoleDao roleDao;
    //查询所有角色
    @Override
    public List<Role> list() {
        return roleDao.selectList(null);
    }
}